package com.kaoshi.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("doctor")
@ApiModel(value="Doctor对象", description="")
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private byte[] imgBytes;

    @ExcelIgnore
    @ApiModelProperty(value = "头像")
    private String img;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "团队id")
    private Integer tid;

    @ExcelIgnore
    @ApiModelProperty(value = "机构id")
    private Integer iid;

    @ExcelIgnore
    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "医生介绍")
    private String introduce;

    @ApiModelProperty(value = "医生特长")
    private String speciality;

    @ExcelIgnore
//    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creation;

    @ExcelIgnore
    @ApiModelProperty(value = " 医生标签")
    private String bq;

    @ExcelIgnore
    @ApiModelProperty(value = "逻辑删除")
    private Integer del;

    @ExcelIgnore
    @TableField(exist = false)
    private Integer zt;

    @ExcelIgnore
    @TableField(exist = false)
    private LocalDateTime sqtime;
}
